package org.kernely.persistence.service;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

/**
 * The session service interface.
 */
public interface SessionService {

	/**
	 * The method return the session factory
	 * @return the session factory
	 */
	public SessionFactory getSessionFactory();
	
	/**
	 * The method returns the session to use to do operations
	 * @return the current session to use
	 */
	public Session getSession();
}
